<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% load static %}
<form action="" method="POST" enctype="multipart/form-data">
{% csrf_token %}
    <input name="photo" type="file" id="exampleInputFile">
    <button id="photo" class="btn btn-danger" type="submit">上传图片</button>
    <div>识别如下：<br /><img src="{{ path }}" alt=""/></div>
</form>
</body>
</html>